package cn.hyy.hrm.client;

import cn.hyy.basic.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "PAGE-SERVICE")
public interface PageClient {

    /**
     * 页面静态化
     * @param templateFileId 模板的文件id，要从fastdfs中下载
     * @param data 模板需要的数据
     * @return
     */
    @PostMapping("/staticPage")
    AjaxResult staticPage(@RequestParam("templateFileId") String templateFileId, @RequestBody Map<String,Object> data);
}
